home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus Leser 19 / Amiga Plus Leser CD 19.iso / Tools / Freeware / ttengine-5.0 / Developer / include / libraries / ttengine.h
Encoding:
C/C++ Source or Header  |  2002-11-13  |  3.0 KB  |  73 lines

  1. #ifndef LIBRARIES_TTENGINE_H
  2. #define LIBRARIES_TTENGINE_H
  3.  
  4. /* $VER: ttengine.h 5.0 (26.11.2002) (c) by Grzegorz Kraszewski 2002. */
  5.  
  6. #define TTENGINENAME "ttengine.library"
  7. #define TTENGINEVERSION 5
  8. #define TTENGINEMINVERSION 3
  9.  
  10. /* Tags */
  11.  
  12. /* Tags applicability legend: */
  13. /* O - TT_OpenFont() */
  14. /* G - TT_GetAttrs() */
  15. /* S - TT_SetAttrs() */
  16. /* P - TT_GetGrayPixmap() */
  17.  
  18. /* ---- name -------------------- value ----- applicability */
  19.  
  20. #define TT_FontFile             0x6EDA0000    /* OG.. */
  21. #define TT_FontStyle            0x6EDA0001    /* OG.. */
  22. #define TT_FontStyle_Regular    0
  23. #define TT_FontStyle_Italic     1
  24. #define TT_FamilyTable          0x6EDA0002    /* O... */
  25. #define TT_FontSize             0x6EDA0003    /* OG.. */
  26. #define TT_FontWeight           0x6EDA0004    /* OG.. */
  27. #define TT_FontWeight_Normal    400
  28. #define TT_FontWeight_Bold      700
  29. #define TT_ColorMap             0x6EDA0005    /* O... */
  30. #define TT_Screen               0x6EDA0006    /* O... */
  31. #define TT_Window               0x6EDA0007    /* O... */
  32. #define TT_FontAscender         0x6EDA0008    /* .G.. */
  33. #define TT_FontDescender        0x6EDA0009    /* .G.. */
  34. #define TT_Antialias            0x6EDA000F    /* .GSP */
  35. #define TT_Antialias_Auto       0
  36. #define TT_Antialias_Off        1
  37. #define TT_Antialias_On         2
  38. #define TT_Encoding             0x6EDA0010    /* .GSP */
  39. #define TT_Encoding_Default     0             /* use ENV:ttfcodepage or ISO-8859-1 if not found */
  40. #define TT_Encoding_Unicode     1             /* requires 16-bit string */
  41. #define TT_Encoding_ISO8859_1   2             /* Western Europe and US */
  42. #define TT_Encoding_ISO8859_2   3             /* Eastern Europe */
  43. #define TT_Encoding_WideUnicode 4             /* requires 32-bit string */
  44. #define TT_FontName             0x6EDA0011    /* .G.. */
  45. #define TT_FamilyName           0x6EDA0012    /* .G.. */
  46. #define TT_SubfamilyName        0x6EDA0013    /* .G.. */
  47. #define TT_Transparency         0x6EDA0014    /* .GS.  from 0 to 255 */
  48. #define TT_ScaleX               0x6EDA0015    /* O.SP  single precision floating point +- 0.01 to 100 */
  49. #define TT_ScaleY               0x6EDA0016    /* O.SP  single precision floating point +- 0.01 to 100 */
  50. #define TT_SoftStyle            0x6EDA0017    /* ..SP (V5) */
  51. #define TT_SoftStyle_None           0x0000
  52. #define TT_SoftStyle_Underlined     0x0001
  53. #define TT_SoftStyle_DblUnderlined  0x0002
  54. #define TT_SoftStyle_Overstriked    0x0004
  55. #define TT_SoftStyle_DblOverstriked 0x0008
  56. #define TT_Foreground           0x6EDA0018    /* ..S.  foreground RGB value*/
  57. #define TT_Foreground_UseRastPort       -1
  58. #define TT_Background           0x6EDA0019    /* ..S.  background RGB value*/
  59. #define TT_Background_UseRastPort       -1
  60.  
  61. /* Structure returned by TT_GetPixmap() (V5)*/
  62.  
  63. struct TT_Pixmap
  64.   {
  65.     ULONG     ttp_Size;       /* size of the structure inculdung this field */
  66.     ULONG     ttp_Width;      /* also equal to bytes per row */
  67.     ULONG     ttp_Height;     /* number of rows */
  68.     UBYTE    *ttp_Data;       /* grayscale pixmap data */
  69.   };
  70.  
  71. #endif /* LIBRARIES_TTENGINE_H */
  72.  
  73.